<?
if(count($news)){
    echo "<ul id=\"news_list\">";
    foreach ($news as $item) {
        $item->content = Text::limit_words(strip_tags($item->content), '40', '...');
        echo "<li>
                <img src=\"{$item->src}\"/>
                <a class=\"title\" href=\"/news{$item->href}\">{$item->html_title}</a>
                <p>$item->content</p>
                <span class=\"date\">".date("d.m.Y", strtotime($item->created))."</span>
              </li>";  
    }
    echo "</ul>";
}

echo "<div id=\"pagination\">$page_links</div>";

?>